<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  <meta name="description" content="刘清政">
  <meta name="keyword" content="hexo-theme">
  
    <link rel="shortcut icon" href="/css/images/logo.png">
  
  <title>
    
      Justin-刘清政的博客
    
  </title>
  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/tomorrow.min.css" rel="stylesheet">
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/css/plugins/gitment.css">

  
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
  
    
<script src="/js/qrious.js"></script>

  
  
    
<script src="/js/gitment.js"></script>

  
  

  
<meta name="generator" content="Hexo 4.2.0"></head>
<div class="wechat-share">
  <img src="/css/images/logo.png" />
</div>

  <body>
    <header class="header fixed-header">
  <div class="header-container">
    <a class="home-link" href="/">
      <div class="logo"></div>
      <span>Justin-刘清政的博客</span>
    </a>
    <ul class="right-list">
      
        <li class="list-item">
          
            <a href="/" class="item-link active">主页</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/tags/" class="item-link">标签</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/archives/" class="item-link">归档</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/about/" class="item-link">关于我</a>
          
        </li>
      
    </ul>
    <div class="menu">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </div>
    <div class="menu-mask">
      <ul class="menu-list">
        
          <li class="menu-item">
            
              <a href="/" class="menu-link mobile-active">主页</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/tags/" class="menu-link">标签</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/archives/" class="menu-link">归档</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/about/" class="menu-link">关于我</a>
            
          </li>
        
      </ul>
    </div>
  </div>
</header>

    <main class="app-body">
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/3-gin%E6%95%B0%E6%8D%AE%E8%A7%A3%E6%9E%90%E5%92%8C%E7%BB%91%E5%AE%9A/">go/4-Go语言框架/4-1-gin框架/3-gin数据解析和绑定</a>
      </h2>
      <p class="article-date">2020年9月15日</p>
      
      <div class="article-summary">
        
          一 Json 数据解析和绑定客户端传参，后端接收并解析到结构体定
12345678910111213141516171819202122232425262728293031323334353637package mainimport (   "github.com/gin-gonic/gin ...
        
      </div>
      <a class="more" href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/3-gin%E6%95%B0%E6%8D%AE%E8%A7%A3%E6%9E%90%E5%92%8C%E7%BB%91%E5%AE%9A/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/2-gin%E8%B7%AF%E7%94%B1/">go/4-Go语言框架/4-1-gin框架/2-gin路由</a>
      </h2>
      <p class="article-date">2020年9月15日</p>
      
      <div class="article-summary">
        
          一 基本路由
gin 框架中采用的路由库是基于httprouter做的
地址为：https://github.com/julienschmidt/httprouter

1234567891011121314151617181920212223package mainimport (	"gi ...
        
      </div>
      <a class="more" href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/2-gin%E8%B7%AF%E7%94%B1/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/1-gin%E6%A1%86%E6%9E%B6%E7%AE%80%E4%BB%8B/">go/4-Go语言框架/4-1-gin框架/1-gin框架简介</a>
      </h2>
      <p class="article-date">2020年9月15日</p>
      
      <div class="article-summary">
        
          一  简介1.1. 介绍
Gin是一个golang的微框架，封装比较优雅，API友好，源码注释比较明确，具有快速灵活，容错方便等特点
对于golang而言，web框架的依赖要远比Python，Java之类的要小。自身的net/http足够简单，性能也非常不错
借助框架开发，不仅可以省去很多常 ...
        
      </div>
      <a class="more" href="/go/4-Go%E8%AF%AD%E8%A8%80%E6%A1%86%E6%9E%B6/4-1-gin%E6%A1%86%E6%9E%B6/1-gin%E6%A1%86%E6%9E%B6%E7%AE%80%E4%BB%8B/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E5%85%B6%E4%BB%96/08-Rabbitmq%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A/">python/其他/08-Rabbitmq从入门到精通</a>
      </h2>
      <p class="article-date">2020年9月6日</p>
      
      <div class="article-summary">
        
          一 消息队列介绍1.1 介绍消息队列就是基础数据结构中的“先进先出”的一种数据机构。想一下，生活中买东西，需要排队，先排的人先买消费，就是典型的“先进先出”

1.2 MQ解决什么问题MQ是一直存在，不过随着微服务架构的流行，成了解决微服务之间问题的常用工具。
应用解耦以电商应用为例，应用中 ...
        
      </div>
      <a class="more" href="/python/%E5%85%B6%E4%BB%96/08-Rabbitmq%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E5%85%B6%E4%BB%96/07-ZeroRPC%E5%92%8CSimpleXMLRPCServer/">python/其他/07-ZeroRPC和SimpleXMLRPCServer</a>
      </h2>
      <p class="article-date">2020年9月6日</p>
      
      <div class="article-summary">
        
          一 Python中RPC框架自带的:SimpleXMLRPCServer(数据包大，速度慢)
第三方：ZeroRPC(底层使用ZeroMQ和MessagePack，速度快，响应时间短，并发高)，grpc(谷歌推出支持夸语言)
二 SimpleXMLRPCServer使用服务端12345678 ...
        
      </div>
      <a class="more" href="/python/%E5%85%B6%E4%BB%96/07-ZeroRPC%E5%92%8CSimpleXMLRPCServer/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/1-%E9%A1%B9%E7%9B%AE%E5%9F%BA%E7%A1%80/15-%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82%E8%AF%A6%E8%A7%A3/">python/路飞项目/1-项目基础/15-跨域请求详解</a>
      </h2>
      <p class="article-date">2020年7月16日</p>
      
      <div class="article-summary">
        
          跨域请求一 同源策略同源策略（Same origin policy）是一种约定，它是浏览器最核心也最基本的安全功能，如果缺少了同源策略，则浏览器的正常功能可能都会受到影响。可以说Web是构建在同源策略基础之上的，浏览器只是针对同源策略的一种实现
请求的url地址,必须与浏览器上的url地址处 ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/1-%E9%A1%B9%E7%9B%AE%E5%9F%BA%E7%A1%80/15-%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82%E8%AF%A6%E8%A7%A3/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/1-%E9%A1%B9%E7%9B%AE%E5%9F%BA%E7%A1%80/0-%E8%B7%AF%E9%A3%9E%E5%AD%A6%E5%9F%8E/">python/路飞项目/1-项目基础/0-路飞学城</a>
      </h2>
      <p class="article-date">2020年7月16日</p>
      
      <div class="article-summary">
        
          1.1 企业的web项目类型
商城
1.1 B2C  直销商城  商家与会员直接交易  ( Business To Customer )
1.2 B2B  批发商城  商家与商家直接交易
1.3 B2B2C   购物平台   商家和会员在另一个商家提供的平台上面进行交易
1.4 C2B    ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/1-%E9%A1%B9%E7%9B%AE%E5%9F%BA%E7%A1%80/0-%E8%B7%AF%E9%A3%9E%E5%AD%A6%E5%9F%8E/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/Django-rest-framework%E6%A1%86%E6%9E%B6/12-RBAC-%E5%9F%BA%E4%BA%8E%E8%A7%92%E8%89%B2%E7%9A%84%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6/">python/Django-rest-framework框架/12-RBAC-基于角色的访问控制</a>
      </h2>
      <p class="article-date">2020年7月14日</p>
      
      <div class="article-summary">
        
          RBAC-基于角色的访问控制一 什么是RBAC概念1RBAC  是基于角色的访问控制（Role-Based Access Control ）在 RBAC  中，权限与角色相关联，用户通过成为适当角色的成员而得到这些角色的权限。这就极大地简化了权限的管理。这样管理都是层级相互依赖的，权限赋予给 ...
        
      </div>
      <a class="more" href="/python/Django-rest-framework%E6%A1%86%E6%9E%B6/12-RBAC-%E5%9F%BA%E4%BA%8E%E8%A7%92%E8%89%B2%E7%9A%84%E8%AE%BF%E9%97%AE%E6%8E%A7%E5%88%B6/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/Django-rest-framework%E6%A1%86%E6%9E%B6/11-Book%E7%B3%BB%E5%88%97%E5%A4%9A%E8%A1%A8%E7%BE%A4%E6%93%8D%E4%BD%9C/">python/Django-rest-framework框架/11-Book系列多表群操作</a>
      </h2>
      <p class="article-date">2020年7月12日</p>
      
      <div class="article-summary">
        
          Book系列连表接口views.py12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686 ...
        
      </div>
      <a class="more" href="/python/Django-rest-framework%E6%A1%86%E6%9E%B6/11-Book%E7%B3%BB%E5%88%97%E5%A4%9A%E8%A1%A8%E7%BE%A4%E6%93%8D%E4%BD%9C/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/linux/%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A/17-Linux%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1/">linux/入门到精通/17-Linux计划任务</a>
      </h2>
      <p class="article-date">2020年7月6日</p>
      
      <div class="article-summary">
        
          1.计划任务基本概述1.什么是crondcrond就是计划任务，类似于我们平时生活中的闹钟。定点执行。
2.为什么要使用crondcrond主要是做一些周期性的任务，比如: 凌晨3点定时备份数据。比如：11点开启网站抢购接口，12点关闭网站抢购接口。
3.计划任务主要分为以下两种使用情况:1 ...
        
      </div>
      <a class="more" href="/linux/%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A/17-Linux%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1/">详情...</a>
    </article>
  

  
    <div class="guide-pager">
  
    <a href="/page/16/"><span class="page-arrow">← </span>Prev</a>
  
  
    <a href="/page/18/">Next<span class="page-arrow"> →</span></a>
  
</div>
  
</main>


    <div class="scroll-top">
  <span class="arrow-icon"></span>
</div>
    <footer class="app-footer">
<!-- 不蒜子统计 -->
<span id="busuanzi_container_site_pv">
     本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_uv" style='display:none'>
     本站访客数<span id="busuanzi_value_site_uv"></span>人
</span>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>



  <p class="copyright">
    &copy; 2021 | Proudly powered by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank">小猿取经</a>
    <br>
    Theme by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank" rel="noopener">小猿取经</a>
  </p>
</footer>

<script>
  function async(u, c) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<script>
  async("//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", function(){
    FastClick.attach(document.body);
  })
</script>

<script>
  var hasLine = 'true';
  async("//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js", function(){
    $('figure pre').each(function(i, block) {
      var figure = $(this).parents('figure');
      if (hasLine === 'false') {
        figure.find('.gutter').hide();
      }
      var lang = figure.attr('class').split(' ')[1] || 'code';
      var codeHtml = $(this).html();
      var codeTag = document.createElement('code');
      codeTag.className = lang;
      codeTag.innerHTML = codeHtml;
      $(this).attr('class', '').empty().html(codeTag);
      figure.attr('data-lang', lang.toUpperCase());
      hljs.highlightBlock(block);
    });
  })
</script>





<!-- Baidu Tongji -->

<script>
    var _baId = 'c5fd96eee1193585be191f318c3fa725';
    // Originial
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?" + _baId;
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
</script>


<script src="/js/script.js"></script>


<script src="/js/search.js"></script>


<script src="/js/load.js"></script>



  <span class="local-search local-search-google local-search-plugin" style="right: 50px;top: 70px;;position:absolute;z-index:2;">
      <input type="search" placeholder="站内搜索" id="local-search-input" class="local-search-input-cls" style="">
      <div id="local-search-result" class="local-search-result-cls"></div>
  </span>


  </body>
</html>